package com.itheima.lambda.lambdaTest1;

/**
 * @Author 王加鑫
 * @Date 2021/5/9 17:01
 * @Version 1.0
 */
public class RandomHander {
    public static void main(String[] args) {
        useNumHander( (int a,int b) -> {
            int num = a+b;
            return num;
        });

    }

    public static void useNumHander(NumHander randNumHander){
        System.out.println(randNumHander.getNumber(10,20));
    }
}

interface NumHander{
    int getNumber(int a,int b);
}
